﻿using System;
using System.ComponentModel;
using System.Runtime.InteropServices;

namespace Teigha.Core
{
	public class OdGsBaseMaterialVectorizer : OdGsBaseVectorizer, OdGiConveyorContext, OdGiDeviation
	{
		[EditorBrowsable(EditorBrowsableState.Never)]
		public OdGsBaseMaterialVectorizer(IntPtr cPtr, bool cMemoryOwn) : base(GlobalsPINVOKE.OdGsBaseMaterialVectorizer_SWIGUpcast(cPtr), cMemoryOwn)
		{
			this.swigCPtr = new HandleRef(this, cPtr);
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		public static HandleRef getCPtr(OdGsBaseMaterialVectorizer obj)
		{
			if (obj != null)
			{
				return obj.swigCPtr;
			}
			return new HandleRef(null, IntPtr.Zero);
		}

		~OdGsBaseMaterialVectorizer()
		{
			this.Dispose();
		}

		public override void Dispose()
		{
			if (this.swigCPtr.Handle != IntPtr.Zero)
			{
				if (this.swigCMemOwn)
				{
					lock (this.locker)
					{
						if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
						{
							this.swigCMemOwn = false;
							GlobalsPINVOKE.delete_OdGsBaseMaterialVectorizer(this.swigCPtr);
						}
					}
					this.swigCMemOwn = false;
				}
				this.swigCPtr = new HandleRef(null, IntPtr.Zero);
			}
			GC.SuppressFinalize(this);
			base.Dispose();
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		HandleRef OdGiConveyorContext.GetCPtr()
		{
			return new HandleRef(this, GlobalsPINVOKE.OdGsBaseMaterialVectorizer_OdGiConveyorContext_GetCPtr(this.swigCPtr.Handle));
		}

		[EditorBrowsable(EditorBrowsableState.Never)]
		HandleRef OdGiDeviation.GetCPtr()
		{
			return new HandleRef(this, GlobalsPINVOKE.OdGsBaseMaterialVectorizer_OdGiDeviation_GetCPtr(this.swigCPtr.Handle));
		}

		public new virtual void onTraitsModified()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_onTraitsModified(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void beginMetafile(OdRxObject pMetafile)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_beginMetafile(this.swigCPtr, OdRxObject.getCPtr(pMetafile));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void endMetafile(OdRxObject pMetafile)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_endMetafile(this.swigCPtr, OdRxObject.getCPtr(pMetafile));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void beginViewVectorization()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_beginViewVectorization(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void endViewVectorization()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_endViewVectorization(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual void processMaterialNode(OdDbStub materialId, OdGsMaterialNode node)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_processMaterialNode(this.swigCPtr, OdDbStub.getCPtr(materialId), OdGsMaterialNode.getCPtr(node));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual bool saveMaterialCache(OdGsMaterialNode pNode, SWIGTYPE_p_OdGsFiler pFiler)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_saveMaterialCache(this.swigCPtr, OdGsMaterialNode.getCPtr(pNode), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual bool loadMaterialCache(OdGsMaterialNode pNode, SWIGTYPE_p_OdGsFiler pFiler)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_loadMaterialCache(this.swigCPtr, OdGsMaterialNode.getCPtr(pNode), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual bool doDraw(uint drawableFlags, OdGiDrawable pDrawable)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_doDraw(this.swigCPtr, drawableFlags, OdGiDrawable.getCPtr(pDrawable));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGiMaterialItem currentMaterial()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_currentMaterial(this.swigCPtr);
			OdGiMaterialItem result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void resetCurrentMaterial(OdGiMaterialItem pMaterial)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_resetCurrentMaterial__SWIG_0(this.swigCPtr, OdGiMaterialItem.getCPtr(pMaterial));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isMaterialEnabled()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_isMaterialEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isMaterialAvailable()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_isMaterialAvailable(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void resetCurrentMaterial()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_resetCurrentMaterial__SWIG_1(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public OdGiMapperItem currentMapper(bool bForCoords)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_currentMapper__SWIG_0(this.swigCPtr, bForCoords);
			OdGiMapperItem result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGiMapperItem currentMapper()
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_currentMapper__SWIG_1(this.swigCPtr);
			OdGiMapperItem result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMapperItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public void resetCurrentMapper(OdGiMapperItem pMapper)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_resetCurrentMapper(this.swigCPtr, OdGiMapperItem.getCPtr(pMapper));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool isMapperEnabled()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_isMapperEnabled(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isMapperAvailable()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_isMapperAvailable(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public bool isMappingDelayed()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_isMappingDelayed(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool getDeviceMapperMatrix(OdGeMatrix3d dm)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_getDeviceMapperMatrix(this.swigCPtr, OdGeMatrix3d.getCPtr(dm));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool skipMaterialProcess(OdDbStub materialId)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_skipMaterialProcess(this.swigCPtr, OdDbStub.getCPtr(materialId));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void nullMaterialStub()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_nullMaterialStub(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual OdGiMaterialItem fillMaterialCache(OdGiMaterialItem prevCache, OdDbStub materialId, OdGiMaterialTraitsData materialData)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_fillMaterialCache(this.swigCPtr, OdGiMaterialItem.getCPtr(prevCache), OdDbStub.getCPtr(materialId), OdGiMaterialTraitsData.getCPtr(materialData));
			OdGiMaterialItem result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual void renderMaterialCache(OdGiMaterialItem pCache, OdDbStub materialId)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_renderMaterialCache(this.swigCPtr, OdGiMaterialItem.getCPtr(pCache), OdDbStub.getCPtr(materialId));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void playDelayCacheEntry(OdGsBaseMaterialVectorizer.DelayCacheEntry pEntry)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_playDelayCacheEntry(this.swigCPtr, OdGsBaseMaterialVectorizer.DelayCacheEntry.getCPtr(pEntry));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public void appendDelayCacheEntry(OdGsBaseMaterialVectorizer.DelayCacheEntry pEntry)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_appendDelayCacheEntry(this.swigCPtr, OdGsBaseMaterialVectorizer.DelayCacheEntry.getCPtr(pEntry));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void mapperChangedForDelayCache()
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_mapperChangedForDelayCache(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public virtual void delayCacheProcessed(OdGiDrawable pDrawable)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_delayCacheProcessed(this.swigCPtr, OdGiDrawable.getCPtr(pDrawable));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public bool saveMaterialItem(OdGiMaterialItem pMatItem, SWIGTYPE_p_OdGsFiler pFiler)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_saveMaterialItem(this.swigCPtr, OdGiMaterialItem.getCPtr(pMatItem), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public OdGiMaterialItem loadMaterialItem(SWIGTYPE_p_OdGsFiler pFiler)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_loadMaterialItem(this.swigCPtr, SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			OdGiMaterialItem result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMaterialItem)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool saveMaterialTexture(OdGiMaterialTexture pTexture, SWIGTYPE_p_OdGsFiler pFiler)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_saveMaterialTexture(OdGiMaterialTexture.getCPtr(pTexture), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static OdGiMaterialTexture loadMaterialTexture(SWIGTYPE_p_OdGsFiler pFiler)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_loadMaterialTexture(SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			OdGiMaterialTexture result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject((OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = (OdGiMaterialTexture)Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool saveMaterialTextureManager(OdGiMaterialTextureManager pManager, SWIGTYPE_p_OdGsFiler pFiler, OdGsMaterialTextureDataFiler pSaver)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_saveMaterialTextureManager(OdGiMaterialTextureManager.getCPtr(pManager), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler), OdGsMaterialTextureDataFiler.getCPtr(pSaver));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public static bool loadMaterialTextureManager(OdGiMaterialTextureManager pManager, SWIGTYPE_p_OdGsFiler pFiler, OdGsMaterialTextureDataFiler pSaver)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_loadMaterialTextureManager(OdGiMaterialTextureManager.getCPtr(pManager), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler), OdGsMaterialTextureDataFiler.getCPtr(pSaver));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual bool saveClientMaterialCache(OdRxObject pMtl, SWIGTYPE_p_OdGsFiler pFiler)
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_saveClientMaterialCache(this.swigCPtr, OdRxObject.getCPtr(pMtl), SWIGTYPE_p_OdGsFiler.getCPtr(pFiler));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public virtual OdRxObject loadClientMaterialCache(SWIGTYPE_p_OdGsFiler pFiler, OdGiMaterialItem pMatItem)
		{
			MemoryManager memoryManager = MemoryManager.GetMemoryManager();
			MemoryTransaction currentTransaction = memoryManager.GetCurrentTransaction();
			IntPtr p = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_loadClientMaterialCache(this.swigCPtr, SWIGTYPE_p_OdGsFiler.getCPtr(pFiler), OdGiMaterialItem.getCPtr(pMatItem));
			OdRxObject result;
			if (currentTransaction != null)
			{
				currentTransaction.AddObject(Teigha.Core.Helpers.odrxCreateObjectInternal(p, true));
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, false);
			}
			else
			{
				result = Teigha.Core.Helpers.odrxCreateObjectInternal(p, true);
			}
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual bool effectivelyVisible()
		{
			bool result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_effectivelyVisible(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		public new virtual void onTextProcessing(OdGePoint3d arg0, OdGeVector3d arg1, OdGeVector3d arg2)
		{
			GlobalsPINVOKE.OdGsBaseMaterialVectorizer_onTextProcessing(this.swigCPtr, OdGePoint3d.getCPtr(arg0), OdGeVector3d.getCPtr(arg1), OdGeVector3d.getCPtr(arg2));
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
		}

		public new virtual uint drawContextFlags()
		{
			uint result = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_drawContextFlags(this.swigCPtr);
			if (GlobalsPINVOKE.SWIGPendingException.Pending)
			{
				throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
			}
			return result;
		}

		private object locker = new object();

		private HandleRef swigCPtr;

		public class DelayCacheEntry : IDisposable
		{
			[EditorBrowsable(EditorBrowsableState.Never)]
			public DelayCacheEntry(IntPtr cPtr, bool cMemoryOwn)
			{
				this.swigCMemOwn = cMemoryOwn;
				this.swigCPtr = new HandleRef(this, cPtr);
			}

			[EditorBrowsable(EditorBrowsableState.Never)]
			public static HandleRef getCPtr(OdGsBaseMaterialVectorizer.DelayCacheEntry obj)
			{
				if (obj != null)
				{
					return obj.swigCPtr;
				}
				return new HandleRef(null, IntPtr.Zero);
			}

			~DelayCacheEntry()
			{
				this.Dispose();
			}

			public virtual void Dispose()
			{
				if (this.swigCPtr.Handle != IntPtr.Zero)
				{
					if (this.swigCMemOwn)
					{
						lock (this.locker)
						{
							if (this.swigCPtr.Handle != IntPtr.Zero && this.swigCMemOwn)
							{
								this.swigCMemOwn = false;
								GlobalsPINVOKE.delete_OdGsBaseMaterialVectorizer_DelayCacheEntry(this.swigCPtr);
							}
						}
						this.swigCMemOwn = false;
					}
					this.swigCPtr = new HandleRef(null, IntPtr.Zero);
				}
				GC.SuppressFinalize(this);
			}

			public DelayCacheEntry() : this(GlobalsPINVOKE.new_OdGsBaseMaterialVectorizer_DelayCacheEntry(), true)
			{
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}

			public OdGsBaseMaterialVectorizer.DelayCacheEntry m_pNext
			{
				get
				{
					IntPtr intPtr = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_m_pNext_get(this.swigCPtr);
					OdGsBaseMaterialVectorizer.DelayCacheEntry result = (intPtr == IntPtr.Zero) ? null : new OdGsBaseMaterialVectorizer.DelayCacheEntry(intPtr, false);
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
					return result;
				}
				set
				{
					GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_m_pNext_set(this.swigCPtr, OdGsBaseMaterialVectorizer.DelayCacheEntry.getCPtr(value));
					if (GlobalsPINVOKE.SWIGPendingException.Pending)
					{
						throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
					}
				}
			}

			public virtual OdGsBaseMaterialVectorizer.DelayCacheEntryType internalType()
			{
				OdGsBaseMaterialVectorizer.DelayCacheEntryType result = (OdGsBaseMaterialVectorizer.DelayCacheEntryType)GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_internalType(this.swigCPtr);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}

			public OdGsBaseMaterialVectorizer.DelayCacheEntry nextEntry()
			{
				IntPtr intPtr = GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_nextEntry(this.swigCPtr);
				OdGsBaseMaterialVectorizer.DelayCacheEntry result = (intPtr == IntPtr.Zero) ? null : new OdGsBaseMaterialVectorizer.DelayCacheEntry(intPtr, false);
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
				return result;
			}

			public void setNextEntry(OdGsBaseMaterialVectorizer.DelayCacheEntry pNext)
			{
				GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_setNextEntry(this.swigCPtr, OdGsBaseMaterialVectorizer.DelayCacheEntry.getCPtr(pNext));
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}

			public virtual void play(OdGsBaseMaterialVectorizer mView)
			{
				GlobalsPINVOKE.OdGsBaseMaterialVectorizer_DelayCacheEntry_play(this.swigCPtr, OdGsBaseMaterialVectorizer.getCPtr(mView));
				if (GlobalsPINVOKE.SWIGPendingException.Pending)
				{
					throw GlobalsPINVOKE.SWIGPendingException.Retrieve();
				}
			}

			private object locker = new object();

			private HandleRef swigCPtr;

			protected bool swigCMemOwn;
		}

		public enum MaterialViewFlags
		{
			kProcessMappers = 1,
			kProcessMaterials,
			kProcessMappersAndMaterials,
			kMappersForRender,
			kMaterialsForRender = 8,
			kMappersAndMaterialsForRender = 12,
			kProcessForRender = 15,
			kEnableDelayCache
		}

		public enum DelayCacheEntryType
		{
			kInternal,
			kUser
		}
	}
}
